<script setup lang="ts">
import { ref } from 'vue';
const copyValue = ref('我是被复制的内容 🍒 🍉 🍊');
</script>

<template>
	<div class="copy">
		<el-input v-model="copyValue"></el-input>
		<el-button v-copy="copyValue">点击复制文本</el-button>
	</div>
</template>

<style lang="less" scoped>
@import url('./index.less');
</style>
